package com.demo.widget.meis;

import com.demo.widget.BaseAbility;
import com.demo.widget.ResourceTable;
import ohos.aafwk.content.Intent;
import ohos.agp.components.ListContainer;

import java.util.ArrayList;
import java.util.List;

/**
 * desc:
 * author: wens
 * date: 2018/4/30.
 */
public class MeiScrollParallaxAbility extends BaseAbility {
    private ListContainer mRecyclerView;
    private MeiScrollParallaxAdapter mAdapter;

    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        setUIContent(ResourceTable.Layout_scroll_parallax_ability);
        mRecyclerView = (ListContainer) findComponentById(ResourceTable.Id_recycler);
        mRecyclerView.setLongClickable(false);
        List<String> mData = new ArrayList<>();
        for (int i = 0; i < 66; i++) {
            mData.add("");
        }
        mAdapter = new MeiScrollParallaxAdapter(mData);
        mRecyclerView.setItemProvider(mAdapter);
    }
}
